
#include "Statistics.h"

void Statistics::add(Statistics* stat)
{
	CAS_totalCount += stat->CAS_totalCount;
	CAS_failuresCount += stat->CAS_failuresCount;
}

void Statistics::normalize(int num)
{
	CAS_totalCount = CAS_totalCount/num;
	CAS_failuresCount = CAS_failuresCount/num;
}

void Statistics::print(){
	cout << "CAS operations: " << CAS_totalCount << endl;
	cout << "CAS failures: " << CAS_failuresCount << endl;
}



